/*
 * IDictionaryStorage.h
 *
 *  Created on: Oct 10, 2012
 *      Author: bruno
 */

#ifndef IDICTIONARYSTORAGE_H_
#define IDICTIONARYSTORAGE_H_

#include <memory>
#include "../../physical_layer/file_system/TermOccurrence.h"

using physical::TermOccurrence;

typedef std::shared_ptr<TermOccurrence> DICTIONARY_ENTRY;

class IDictionaryStorage
{
public:
	IDictionaryStorage(){}
	virtual ~IDictionaryStorage(){}
	virtual DICTIONARY_ENTRY get() = 0;
	virtual bool hasNext() = 0;
	virtual void put(DICTIONARY_ENTRY) = 0;
	virtual void close() = 0;
};

#endif /* IDICTIONARYSTORAGE_H_ */
